#include <stdio.h>
#include <stdlib.h>

int setbit(int num, int n) 
{
    int pos = 1;
	while (--n) {
		pos <<= 1;
	}
	return num ^ pos; 	
}

int clearbit(int num, int n) 
{
    int pos = 1;
	while (--n) 
	    pos <<= 1;
	return pos;
}

/*
int main()
{
	char num = 1;
	printf("%x\n", ~num);

}
*/

